package com.monise.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "PAIS")
public class Pais implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PAIS_SEQUENCE", sequenceName="PAIS_SEQUENCE", initialValue=1, allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PAIS_SEQUENCE")
	@Column(name = "pkPais")
	private long pkPais;
	
	@Column(name = "nome")
	private String nome;

	public long getPkPais() {
		return pkPais;
	}

	public void setPkPais(long pkPais) {
		this.pkPais = pkPais;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	@Override
	public String toString() {
		return   nome;
	}

}
